package cn.zr.aitool.activitys;

import java.util.List;

import cn.zr.aitool.bean.ContentBean;
import cn.zr.aitool.db.ContentColumn;
import cn.zr.aitool.db.ContentManager;


public class BaseDetailActivity extends BaseActivity {
    protected String content;
    protected String title;
    protected String start;
    protected String end;
    protected String content1;
    protected String content2;
    protected String content3;
    protected List<ContentBean> data;

    @Override
    protected void setData() {
        content = getIntent().getStringExtra(ContentColumn.content);
        title = getIntent().getStringExtra(ContentColumn.title);
        start = getIntent().getStringExtra(ContentColumn.start);
        end = getIntent().getStringExtra(ContentColumn.end);
        content1 = getIntent().getStringExtra(ContentColumn.content_one);
        content2 = getIntent().getStringExtra(ContentColumn.content_two);
        content3 = getIntent().getStringExtra(ContentColumn.content_thr);
        getDataByTitle();
    }

    protected void getDataByTitle() {
        data = ContentManager.getInstance().queryContentsByTitle(title);
    }
}
